Skip to content

[SofaRuntime] Add findPlugin and isPluginLoaded bindings - #652

Open
fredroy wants to merge 1 commit into
sofa-framework:masterfrom
fredroy:sofaruntime_findplugin
Open

fredroy wants to merge 1 commit into
sofa-framework:masterfrom
fredroy:sofaruntime_findplugin

Conversation

@fredroy

@fredroy fredroy commented Nov 10, 2026

Copy link
Copy Markdown
Contributor
Allow checking whether a plugin can be found or is already loaded without actually loading it 
(and without logging an error when it does not exist), which importPlugin does not permit.

I wanted to test if a plugin was present before the simulation is loaded and I was trying to do:

try:
    SofaRuntime.importPlugin("ProutPlugin")
except:
   do_something_if_not_found()

But it is still print an error from the C++ side of the code

Allow checking whether a plugin can be found or is already loaded
without actually loading it (and without logging an error when it
does not exist), which importPlugin does not permit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant